package com.k2data.k2app.mapper;

import com.k2data.k2app.domain.SysUserPermission;
import com.k2data.k2app.mybatis.mapper.K2Mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 角色DAO接口
 * @author ThinkGem
 * @version 2013-12-05
 */
@Mapper
@Repository
public interface SysUserPermissionMapper extends K2Mapper<SysUserPermission> {

	int deleteByUserId (Long userId);
	int insertBatch (List<SysUserPermission> list);

	List<SysUserPermission> selectByUserId(@Param("userId") Long userId);
}
